Trout's homer proves the difference in 5-4 win over Rangers