A Nivat Theorem for Weighted Alternating Automata over Commutative Semirings (Logical Methods in Computer Science, 2023)