Functions of bounded variation over non-smooth manifolds and generalized curvatures