In situ tuning of a photonic band gap with laser pulses