Periodic solutions of some complex-valued Liénard and Rayleigh equations