Quantifying domain wall contributions to properties using X-rays