Spectral characterization of unicyclic graphs whose second largest eigenvalue does not exceed 1