Interpretation of marine and freshwater paleoenvironments in Permo–Carboniferous deposits