Sustainable electrochemical production of tartaric acid