Interaction potentials and inherent structures in liquids, glasses, and crystals