The Mega-MUSCLES Treasury survey: X-Ray to infrared spectral energy distributions of a representative sample of M dwarfs