Carlisle man sentenced for knifepoint robbery