Ab initio modelling of low-dimensional systems