The optimization and design of magnetoresistive barber-pole sensors