Existence of solutions for a second-order differential equation with non-instantaneous impulses and delay