Direct two-photon absorption of Gd(OH)3 and GdCl3 in an applied magnetic field