Coherent control of spontaneous emission by photonic crystals