Stellar electron-capture rates based on finite-temperature relativistic quasiparticle random-phase approximation