Accurate computation of design sensitivities for structures under transient dynamic loads with constraints on stresses