Through-wafer electrical interconnect for multilevel microelectromechanical system devices