On graphs whose least eigenvalue is greater than –2