Heteroclinic solutions between stationary points at different energy levels