Convergence Rates of Inexact Proximal-Gradient Methods for Convex Optimization