Luminosity functions of cluster galaxies