Intelligent cell gauge for a hierarchical battery management system