Convergence of the proximal bundle algorithm for nonsmooth nonconvex optimization problems