Chicago firm buys South Portland medical complex for $30 million