First- and second-order sensitivity analysis schemes by collocation-type Trefitz method