Reverse Smith-Purcell radiation in photonic crystals