The evolutionary dynamics of audit