Electrochemical switching of chromogenic monolayers self-assembled on transparent platinum electrodes