Accounting Choices And The Legal Environment: The Impact Of The Ex Post Loss Rule