Biogeochemical aspects of ecosystem restoration and rehabilitation