Monte Carlo study of screening versus confinement in the massless and massive schwinger model