Modelling the self-assembly of virus capsids