What conditions are necessary for the formation of thunderstorms?