Almost everywhere convergence of spectral sums for self-adjoint operators