Analytical approach to excitonic properties of MoS2