When did wales become part of the united kingdom?