A Smart Walking Assistant for Safe Navigation in Complex Indoor Environments