Which absolute monarch toured western europe for ideas on modernizing his nation and invaded other countries in order to secure warm-water ports?.