Patterned Nanofoam Fabrication from a Variety of Materials via Femtosecond Laser Pulses