General Stability Criteria for Compositional and Black-Oil Models