Galicia then became part of which Kingdom