An optimal assembly mode of multi-type printed circuit boards