A discrete approach for modeling cell–matrix adhesions