Solar flares: The gradual phase