Structure-energy correlation for grain boundaries in F.C.C. metals—I. Boundaries on the (111) and (100) planes