Toward the definition of a semi-automated building inventory tool and its use for earthquake damage assessment