High-quality Cu2O thin films via electrochemical synthesis under a variable applied potential