Integral graphs with distinct eigenvalues