Charge exchange measurements with an x-ray calorimeter at an electron beam ion trap