Semiconductor batteries and chips