Storage and release of femtosecond laser pulses in a resonant photonic crystal