Understanding ordered silica: Linking topology and energetics