Euclidean D-branes and higher-dimensional gauge theory