Spectra of Random Hermitian Matrices with a Small-Rank External Source: The Critical and Near-Critical Regimes