Singularity analysis of planar parallel manipulators