Representations of the Lie superalgebras gl (n, m) and Q(n) on the space of tensors