Design and fabrication of 1D and 2D optical scanner for electron beams using color centre generation