Theory and hierarchical modeling of tropical and extratropical cyclones