Method for determining crystal structure and apparatus for carrying it out