Computing the eigenvalues and eigenvectors of symmetric arrowhead matrices