Lossless polarization attraction simulation with a novel and simple counterpropagation algorithm for optical signals