Prediction error and trace dominance determine the fate of fear memories after post-training manipulations