Chemical bath deposition of AgBiS2 films for visible and X-ray detection