MEMS optical microphone with electrostatically controlled grating diaphragm