Right-convergence of sparse random graphs