Temporal reflection of optical pulses on a moving boundary