Infinitely many periodic solutions for a class of perturbed second-order differential equations with impulses