A cloud-based heterogeneous wireless platform for monitoring and management of freight trains