Abandoned asylums, hotels and palazzos are given a painterly touch