A general technique to evaluate the effects of manufacturing errors on positioning precision during design