What queen's marriage was a condition of the promises in the Poland-Lithuanian union that was threatened to be severed by the Lithuanian Civil War?