Substance and the substance of minds in Descartes and Locke