Survey: Half of consumers would consider buying a foreclosed home