Equilibrium of point defects and charge transfer in lanthanum cobaltite