Generalized trapezoidal distributions