Kinematic analysis of spherical four-bar linkages via the inflection cubic and Thales ellipse