Generalized Ohm’s law and geometric optics: Applications to magnetosonic waves