Spatial distribution of the electric current and field in atomic-scale conductors