Photon-detecting superconducting resonators