DISTORTION OF THE LUMINOSITY FUNCTION OF HIGH-REDSHIFT GALAXIES BY GRAVITATIONAL LENSING