Thermal potential of ion-exchange membranes and its application to thermoelectric power generation