Spreadsheet helps optimize four-bar linkages