On the periodicity of morphisms on free monoids