Band-structure and core-hole effects in resonant inelastic soft-x-ray scattering: Experiment and theory