Text this: Microlens Array-Based Beam Profile and Wavefront Sensor With Physical Constraint Learning