Optimal technology policy: subsidies versus monitoring