The timing and location of major ore deposits in an evolving orogen