Offline Pricing and Demand Learning with Censored Data