An approach for identifying cryptic barriers to gene flow that limit species' geographic ranges