Supersymmetric near-horizon geometry and Einstein-Cartan-Weyl spaces