Isoparametric functions and nodal solutions of the Yamabe equation