How to use economic theory to improve estimators, with an application to labor demand and wage inequality