Coherent accumulation in two-level atoms excited by a train of ultrashort pulses