The luminosity function and space density of the most luminous galaxies in the IRAS survey