Nonequilibrium statistical Zubarev's operator and Green's functions for an inhomogeneous electron gas