Gravar-mail: Theoretical approach to resonant inelastic x-ray scattering in iron-based superconductors at the energy scale of the superconducting gap