Correction of triggering and interchannel delay in alternating and two-dimensional measurements of magnetic properties