Dosimetry of an in-line kilovoltage imaging system and implementation in treatment planning.