Advanced technologies in the radiotherapy clinic: system fundamentals