German right-wing extremist gets prison sentence for terror plot