Loney hits 3-run homer, Dodgers beat Texas 5-2