On the electrostatic control achieved in transistors based on multilayered MoS2: A first-principles study