Optimization of superconducting resonant circuits for the selection of SNSPDs.