Torsion and curvature in extended supergravity