Impact of transverse and vertical gate electric field on vibrational and electronic properties of MoS2