Text this: Computation of a subset of X-parameters using the adjoint method