Dark energy and right-handed neutrinos