MEMS based confocal optical microscope