An analytical method for finding exact solutions of modified Korteweg–de Vries equation