A primer on theory and operation of linear accelerators in radiation therapy