Low redshift AGN in the Hamburg/ESO survey - I. The local AGN luminosity function