The full answer is kind of long and hard to paste into a Pokebase answer, so I hope it's okay to link to an article.