Dimension-free bounds for sums of independent matrices and simple tensors via the variational principle