Frequency effects on the emergence of polysemy and homophony