A unified approach to sparse signal processing