Nonsmooth algorithms for minimizing the largest eigenvalue with applications to inner numerical radius