Method for constructing fundamental equation of state based on the relationships of similarity theory and scaling hypothesis