Gate-tunable Ruderman-Kittel-Kasuya-Yosida interaction mediated by low-dimensional electrons with Rashba spin-orbit coupling