General Economic Order Quantity Model for Lot Sizing with Quality Loss and Process Analysis