Quantitative band mapping of crystals from resonant inelastic X-ray scattering