The electromagnetic performance of the RD52 fiber calorimeter