Synthesis of N-protected N-methyl serine and threonine