Aberdeen have signed centre-back Michael Hector on loan from Reading for the first half of the season.