Overview of recent developments of resource recovery from wastewater via electrochemistry-based technologies.