Optical characterization of micro-electro-mechanical structures