Optimal adaptive design of the prescribed-structure controllers