Locke's theory of knowledge: with a notice of Berkeley