On mineralogical and geochemical criteria in the genesis of red beds