A comparative and critical study of the epistemological and ontological doctrines of John Locke and David Hume