Quasiparticle tunneling as a probe of Josephson junction barrier and capacitor material in superconducting qubits