Fale elektromagnetyczne, podstawy teorii anten i falowodów