A thin gap gas chamber with on-board electronics for DELPHI: an integrated detector