Microelectronic readout of a diamond quantum sensor