On manifolds representing homology classes in codimension 2