Knee angle model of prosthesis for stair ascending gait detection