Analysis of constraint singularities of a 2-DOF spatial parallel mechanism