Tuning the porosity of bimetallic nanostructures by a soft templating approach