Hypersurfaces and variational formulas in sub-Riemannian Carnot groups