The effect of macroeconomic and environmental factors on innovation in EU member countries