An improved optical potential for many body Green's Function calculations : LiH and H2O