Leptonic CP violating effective action for Dirac and Majorana neutrinos