Error bounds for support vector machines with application to the identification of active constraints