Crystal alignment of a LiFePO4 cathode material for lithium ion batteries using its magnetic properties