Competition theory and the structure of ecological communities