Structural origin of the dopant induced stabilization of ZrO2