Generating q-commutator identities and the q-BCH formula