Different neurophysiological mechanisms underlying word and rule learning