Padres top Nationals 8-3 in extra innings