The interaction between competition, learning, and habituation dynamics in speech perception