A unified input–output analysis of four-bar linkages