Towards a theory of the evolution of modifier genes