Energetics of Nanoscale Films with Self–Assembled Oxide/Metal Pillars in Nitride Matrix