Heteroclinics for non-autonomous second-order differential equations