how temperature affects battery