Fast Rates of ERM and Stochastic Approximation: Adaptive to Error Bound Conditions