Performance of electronic devices submitted to X-rays and high energy proton beams