Methodology to reduce 6D patient positional shifts into a 3D linear shift and its verification in frameless stereotactic radiotherapy