Thymic selection of T-cell receptors as an extreme value problem.