A's rally with 4-run 8th to beat Angels 5-3