Obama warns Afghan president of full troop withdrawal