Somerset have signed South Africa opening batsman Alviro Petersen for the first half of the 2013 season.