Advanced microfabrication lithography for MEMS and sensors