The development and characterization of miniature spectrometers for measuring the redox status of environmental samples