Self-Destructing Models: Increasing the Costs of Harmful Dual Uses of Foundation Models