Atomic-scale study of stacking faults in Zr hydrides and implications on hydride formation