KM3NeT front-end and readout electronics system: hardware, firmware, and software