Nonprofits getting first shot at bank foreclosures