Phase control in selenium electrodeposition with bath temperature and deposition potential