Gene Flow and Genetic Variation Explain Signatures of Selection across a Climate Gradient in Two Riparian Species