Electromagnetic calorimeters based on CsI crystals