Flexible, multifunctional nanoribbon arrays of palladium nanoparticles for transparent conduction and hydrogen detection