An intelligent anti-collision system for electric vehicles applications