p-Type conductivity in wide-band-gap BaCuQF (Q=S, Se)