San Francisco firm plans to snap up Macy's building