Towards a theory for the mixed alkali effect in glasses