The Spectral Energy Distribution of CO lines in M82