Nanoindentation behavior of UV-curable resist and its correlation with patterning defect in nanoimprint lithography