A conceptual framework for the evolution of ecological specialisation