Semiconductor electrochemical energy storage