A theoretical introduction to atmospheric and oceanic convection