Inverse thermal design of nanoporous thin films for thermal cloaking