Structure-energy correlation for grain boundaries in silicon