Discontinuous losses from poverty, generalized Pα measures, and optimal transfers to the poor