Optimal discrimination of quantum states with a fixed rate of inconclusive outcomes