Direct Urca process in strong magnetic fields and neutron star cooling