Periodic solutions of a class of Duffing differential equations