IRAS observations of the Rho Ophiuchi infrared cluster - Spectral energy distributions and luminosity function