Numerical investigation of surface distortion and order parameter variation in nematics