Computer modelling of materials at the nanoscale