Overcoming challenges to incorporation of inertial sensors in an epitaxial encapsulation process