3D range-based indoor localization by using only two beacons