Multiple patterning with process optimization method for maskless DMD-based grayscale lithography