A spiritual interpretation of reality in the light of Berkeley's immaterialism