Modeling interactive car-following behaviors of automated and human-driven vehicles in safety-critical events: a multi-agent state-space attention-enhanced framework