Celtic have signed midfielder Tomas Rogic on a four-and-a-half-year contract from Central Coast Mariners.