Ab initio X-ray powder diffraction characterisation of molecule-based magnetic materials