Reconstruction of Casimir—Polder interactions from matter-wave interference experiments