Realization of a permanent magnet undulator for the CLIO infrared free electron laser at Orsay