New diffractometer for thin-film structure analysis under grazing incidence condition