Consider the polynomial \( P(z) = z^4 + z^2 + 1 \). Identify the smallest positive integer \( n \) such that all the roots of \( P(z) \) are \( n \)-th roots of unity. Let's think step by step and output the final answer within \boxed{}.
user