According to NCEES PE Structural exam standards, what is the primary purpose of a moment-resisting frame in a building structure?