Connectors Synthesis for Deadlock-Free Component Based Architectures