Structure and energy of twin boundaries in copper