Characterizing Random Variables by Specifying the Distribution of U-Shaped Functions of Their Weighted Sums