What determines the direction of battery current