What are the three factors that contribute the most to the formation of coastal currents?