The demagnetizing field inside a domain wall