Electrical gating of superconducting NbSe2 using SrTiO3-based field-effect transistors