Effect of random on-site energies on the critical temperature of a lattice Bose gas