Stochastic models of systems for Nanotechnology: from micro to macro scale