Generalized wedges and ordered spaces with the Riesz decomposition property