On the use of natural coordinates in optimal synthesis of mechanisms