Species interactions and ecological functions