Improved X-ray and electron diffraction methods for twin determination in hexagonal crystals