A German court has sentenced two Rwandan rebel leaders for masterminding attacks on civilians in the Democratic Republic of Congo.