As foreclosures mount, more people are considering bankruptcy