Design and characterization of a portable ultrasonic indoor 3D positioning system