Why did Spain establish colonies in Texas and California, and what role did missions play in anchoring the Spanish presence?