Monolithic fully integrated programmable micro-diffraction grating based on electro-optical materials