Role of magnetic chirality in polarization flip upon a commensurate-incommensurate magnetic phase transition in YMn 2 O 5