Hierarchical bayesian models for sparse signal recovery and sampling