A General Framework of Dual Certificate Analysis for Structured Sparse Recovery Problems