Modeling Human Response to Robot Errors for Timely Error Detection