Measurement of the differential and total cross sections of the gamma d -> K^(0) Lambda (p) reaction within the resonance region