Tunability of martensitic behavior through coherent nanoprecipitates and other nanostructures