Method of preparing glycopeptides