Agent-based modelling, molluscan population dynamics, and archaeomalacology