Sc doping of MgB2: the structural and electronic properties of Mg1-xScxB2