Constrained suboptimality in incomplete markets: a general approach and two applications