Optimal control of distributed parameter systems using multilevel techniques