Tuning the mechanics of cell-cell adhesion