Time response of a microring resonator to a rectangular pulse in different coupling regimes