under what circumstances did some free blacks avoid segregation and gain access to hotels in the northern states during the first half of the 1800s?