A petrographic criterion for the possible replacement origin of rocks