Study of the in-medium nucleon electromagnetic form factors using a light-front nucleon wave function combined with the quark-meson coupling model