Strain-induced magnetic transition in CaMnO3 ultrathin films