This erratum corrects an error in Eq. (29) of the original paper, Appl. Opt.62, 8451 (2023)APOPAI0003-693510.1364/AO.505327.