High speed electronics for SPAD image sensors used in TimeofFlight applications