The sustainability dilemma of China’s township and village enterprises: an analysis from spatial and functional perspectives