Partial least-squares modelling of dye fastness to light