Simultaneous beam-based alignment measurement for multiple magnets by correcting induced orbit shift