Anharmonicity of nitrate-ion oscillation in crystals and melts of sodium, rubidium, and cesium nitrate