Accuracy improvement of the S-parameter adjoint sensitivity analysis for shape parameters