Performance of the zero degree calorimeters for the ALICE experiment