Statistics for 1/f noise in dye-sensitized solar cells and NIR photon detectors