The relative concept of warm and cold spells of temperature: Methodology and application