Influence of the surface on magnetic domain-wall microstructure.