Simulations of X-ray photoelectron diffraction for polytype analysis