Text this: Fast simulation of the influence of a refractive free-form microstructure on a wave field based on scalar diffraction theory