Selection and environmental adaptation along a path to speciation in the Tibetan frog Nanorana parkeri