Toeplitz determinants with perturbations in the corners