Ambiguity drives higher-order Pavlovian learning