A generalized figure of merit for qubit readout