Radiofrequency pulse sequences which compensate their own imperfections