Structures and energies of compression twin boundaries inhcpTi and Zr