Partial-reward training for resistance to punishment and to subsequent extinction.