Text this: Modeling and defect analysis of step and flash imprint lithography and photolithography