Ecological principles of species distribution models: the habitat matching rule