Development of resonant inelastic x-ray scattering spectroscopy