Perturbation of the boundary in boundary-value problems of partial differential equations