cars work by transforming chemical energy into mechanical energy