Inclusive electron scattering in a relativistic Green's function approach