Electrically Controlled Liquid Crystal Phase Grating for Terahertz Waves