Critical character of gravitational-wave modulation of electric and magnetic fields in isotropic media