One- and two-dimensional photo-imprinted diffraction gratings for manipulating terahertz waves