A unifying similarity measure for automated identification of national implementations of european union directives