Charge transport and quantum confinement in MoS2 dual-gated transistors