Alonso leads Padres past Royals 8-5