Burnout among junior doctors impacting patient safety, study finds