Energy localization in photonic crystals of a purely nonlinear origin