Semi-empirical equation of state for polymers and simple liquids in non-critical and critical regions