A new method to detect an X-ray diffracted beam at an angle of 90