Preparation method of 3-substituted indole derivatives