Reverse electrodialysis using bipolar ion-exchange membranes as a source of electric energy