Thousands of books ruined at Phoenix library