Data-analysis software framework 2DMAT and its application to experimental measurements for two-dimensional material structures