AFMC: A Novel Automated Flow for Asynchronous Circuit Design