Twisted inner products and contraction inequalities on spaces of contravariant and covariant tensors