Hamels dominates Marlins, earns 9th win