Is neoclassical microeconomics formally valid? An approach based on an analogy with equilibrium thermodynamics