Epitaxial encapsulation of MEMS inertial sensors