Periodic solutions for some nonautonomous second-order systems