The optical variability of flat-spectrum radio quasars in the SDSS stripe 82 region