Giant and Pygmy Dipole Resonances in neutron-rich nuclei: their excitation via Coulomb and nuclear fields