Accounts payable definition, examples, and how it works