How does functionalism, as a theoretical framework, explain the role of social institutions in maintaining societal equilibrium,