A quasar-galaxy mixing diagram: quasar spectral energy distribution shapes in the optical to near-infrared