Accurately measuring phase profiles of structured light in optical manipulation