The Stromlo-APM redshift survey. I: The luminosity function and space density of galaxies