Determining Lewis symbols for ions