The electromagnetic calorimeter of the NOMAD experiment