How many unpaired electrons are in a magnesium atom?