Text this: Speed change and traffic safety power model for inter-urban roads with heterogeneous traffic