Battery pack self-heating