Optimal control theory : an introduction