Strain coupling mechanisms and elastic relaxation associated with spin state transitions in LaCoO3