Twisted tensor products of n-groupoids and crossed complexes