Text this: A lot-sizing model for a multi-state system with deteriorating items, variable production rate and imperfect quality