A unified variance-reduced accelerated gradient method for convex optimization