Photodetection probability in quantum systems with arbitrarily strong light-matter interaction