Coherent neutrino scattering and the Migdal effect on the quenching factor