Weak coherent pulses for single-photon quantum memories