Method for construction of nonclassical equations of state