German court sentences PKK terrorist to prison