Transverse mode structure in unstable optical cavities.