Structure and energy of general grain boundaries in bcc metals