Structure and energy of grain boundaries: Application to symmetrical tilt boundaries around [100] in aluminium and copper