Modeling inelasticity and failure in gold nanowires | Synapse