Transparent metal nanowire thin films prepared in mesostructured templates.