Energy storage properties of ferroelectric nanocomposites