Structural and electronic properties of the Li-ion battery cathode material LixCoSiO4