The rock carvings of the Kirthar and Taki valleys reveal a layered history of belief, survival and imagination