How do the entry and exit of firms in a purely competitive industry affect resource flows and long-run profits and losses?