Linking optical and electrical small amplitude perturbation techniques for dynamic performance characterization of dye solar cells.