Mechanism of homophilic cadherin adhesion