Measuring charged current neutrino interactions in the electromagnetic calorimeters of the ND280 detector