Performance and parameter optimization of a capacitive salinity/heat engine for harvesting salinity difference energy and low grade heat