Photometric redshifts of galaxies