Explain how the convection currents arise as a result of variations in density of liquids and gases with temperature.