The electrical and optical properties of kesterites