Adapter for electrically connecting a lighting device to an electrical track, lighting system comprising such an adapter and an electrical track