First-principles study of the electronic structure and optical properties of Ce-doped ZnO