Sustainable water and energy: the EU-FP7 MEDIRAS and REAPOWER research projects