Heteroclinic connections between nonconsecutive equilibria of a fourth order differential equation