A primitive element theorem for fields with commuting derivations and automorphisms