Two-photon absorption in fiber-integrated resonators for single-photon sources and quantum gates