Empirical likelihood estimation and consistent tests with conditional moment restrictions