Tectonostratigraphic and paleoenvironmental settings of host-replacing phreatic calcrete hardpans developed at basin margins in the Upper Devonian Kinnesswood Formation of southwest Scotland