Total curvatures of compact manifolds immersed in euclidean space