Optimal shape design of a high-voltage test arrangement