Investigation of aerogel, saturated foam, and foil for thermal neutron detection