Wavefront geometry in excitable media