Mathematical modelling of dye-sensitised solar cells