Spin-State Transition in LaCoO3 and Related Materials