Transition from Homogeneous to Localized Deformation in Nanoporous Gold.