Periodic solutions of the Duffing differential equation revisited via the averaging theory