Monolithic electrochemical cells for overall water splitting