Optimal strategy for polarization modulation in the LSPE-SWIPE experiment