A Maximal Tractable Class of Soft Constraints