German court sentences terrorist PKK member to prison