Wafer level encapsulation of microsystems using glass frit bonding