Optimizers for the finite rank Lieb--Thirring inequality