Detection of redox gradients