Functionalization of materials via femtosecond-pulsed laser irradiation