The joint benefits of observed and unobserved social sanctions