AIG to purchase Bermuda reinsurer Validus