Wafer-scale film encapsulation of micromachined accelerometers