A new approach to the analysis of magnetisation measurements in rare-earth/transition-metal compounds: application to Nd2Fe14B