Electrically Controlled 1D and 2D Cholesteric Liquid Crystal Gratings