Geological mystery: Study unearths how copper deposits formed