Modelling the toxicity of nanoparticles