How government officials with discretion make decisions: a case study of tax law