A geo-localization and diagnostic system for freight railway wagons