An item response model with internal restrictions on item difficulty