Study of the dielectric function of graphene from spectroscopic ellipsometry and electron energy loss spectroscopy