Periodic solutions of some Lienard and Duffing equations