Boundary element methods for optimization of distributed parameter systems