Early detection of preferential channeling in reverse electrodialysis