Spectral Energy Distribution of Markarian 501: Quiescent State Versus Extreme Outburst