Text this: An Improved Algorithm to Extract Moiré Fringe Phase for Wafer-Mask Alignment in Nanoimprint Lithography