Manipulation of the quantum state by the Majorana transition in spinor Bose-Einstein condensates