Effective field theory approach to light propagation in an external magnetic field