Low-power optical beam steering by microelectromechanical waveguide gratings