Structural and magnetic properties of multi-core nanoparticles analysed using a generalised numerical inversion method