Using a discretized measure of academic performance to approximate primary and secondary effects in inequality of educational opportunity