Optical principles of beam transport for relativistic electron cooling