Electronic shifting for mechanical derailleurs