Classification and mean behavior of magnetic storms