Solving $\ell^p\!$-norm regularization with tensor kernels