Reversed and Anomalous Doppler Effects in Photonic Crystals and other Time-dependent Periodic Media