Bayesian reconstruction of gravitational-wave signals from binary black holes with nonzero eccentricities