Robustness of networks against viruses: The role of the spectral radius