Facile synthesis of complex multi-component organic and organic–magnetic inorganic nanocomposite particles