Effects of mass segregation on globular cluster main-sequence luminosity functions