Richard, Padres beat Dodgers 8-4 for 1st win