Generation of two-color terahertz radiation using Smith–Purcell emitter and periodic dielectric layers