Design and fabrication of a freeform microlens array for uniform beam shaping