A real-time 3D reconstruction of staircases for rehabilitative exoskeletons