Describe the process of cloud formation and the key factors that contribute to the formation of different types of clouds.