Electrostatic control of the proximity effect in the bulk of semiconductor-superconductor hybrids