Mechanisms of toughening and strengthening in ceramic-based nanocomposites