Regulation of junction configuration by cell tension