A two-stage supply chain with inspection errors and learning in production