Qualitative Modeling of Complex Systems: An Introduction to Loop Analysis and Time Averaging