Calculation of the average interface field in inversion layers using zero-temperature Green's function formalism