Geometrically induced magnetic catalysis and critical dimensions