High-resolution maskless lithography for MEMS and sensors