Continuous hydrothermal synthesis of magnetic nanoparticles and optimisation of their separation and purification