Excitement over artificial intelligence is powering a boom in what was once a small niche in the commercial real-estate business.