AUTOMATIC SINGLE CRYSTAL DIFFRACTOMETRY. I. THE KINEMATIC PROBLEM