Inverse stereographic projection from a square in complex plane to Riemann sphere