A flexible giant magnetoresistive device for sensing strain direction