Sparse component separation for accurate cosmic microwave background estimation