Non-reciprocity in piezoelectric and electrostatic microelectromechanical systems