Application of chemical-mechanical polishing to planarization of surface-micromachined devises