Quantitative optical spectroscopy of 87Rb vapour in the Voigt geometry in DC magnetic fields up to 0.4 T