Diffraction-based integrated optical readout for micromachined optomechanical sensors