German court sentences PKK terrorists to prison