Dual-task performance: Theoretical analysis and an event-coding account