Territorial patterns of innovation: evidence on European regions