It was granted its Royal Charter in 1837 under King William IV. When were the various supplemental charters consolidated?