Spin-wave theory analytic solution of a Heisenberg model with RKKY interactions on a Bethe lattice