Pre-wave zone studies of coherent transition and diffraction radiation