Superconducting nanowire single-photon detector on dielectric optical films for visible and near infrared wavelengths