Investigation of driver behavior during crash and near-crash events using naturalistic driving data