Control of spontaneous emission of a single quantum emitter through a time-modulated photonic-band-gap environment