Integrated optomechanical sensing for semiconductor metrology