Spacewalking astronauts replace old space station batteries as part of years-long upgrade