Stacy Lewis has withdrawn from the US Solheim Cup team with a back injury and been replaced by Ally McDonald.