Functional traits and environmental conditions predict community isotopic niches and energy pathways across spatial scales