Ferroelectric phase transitions in sodium nitrite nanocomposites