Toughening and mechanosensing in bone: a perfectly balanced mechanism based on competing stresses