Optimal Control And Shape Design: Theory And Applications