A sparse representation criterion: recovery conditions and implementation issues