Charge transfer driven by ultrafast spin transition in a CoFe Prussian blue analogue