Breadth versus depth: Interactions that stabilize particle assemblies to changes in density or temperature