g-Hartree mean-field analysis of inner-shell many-body effects for small- and large-Z atoms