Structural model of patent quality applied to various countries