Cosmological simulations of black hole growth: AGN luminosities and downsizing