How does the periodic system differ from the perpetual system of accounting for merchandise inventory?