Early stopping for kernel boosting algorithms: A general analysis with localized complexities