Strain-driven magnetism in LaCoO3 thin films