Polytypism in ZnS, ZnSe, and ZnTe: First-principles study