Periodic solutions for a class of Duffing differential equations