Turkish firm wins Pakistani submarine upgrade contract