The optimization of ecological service function and planning control of territorial space planning for ecological protection and restoration