The master analytic function and the Lorentz group. I. Reduction of the representations of O(3,1) in O(2,1) basis