Typology for flight-to-quality episodes and downside risk measurement