Existence results for double-phase problems via Morse theory