Modelling the physical properties of nanostructures and composites