2.5D grayscale lithography for micro-optics and holograms