Study and design of a wireless monitoring device for intermodal freight wagons