Painted bookcases offer clean lines and a contemporary feel in period and modern homes