Let SSMs be ConvNets: State-space Modeling with Optimal Tensor Contractions