Astros snap five-game skid with 5-2 win over Mariners