Bankrupt Kodak sells patents for $525 million