Consistency of one-class SVM and related algorithms