The surprising logic behind the use of check cashers and payday loans