Determination of morphological characteristics of metallic nanoparticles based on modified Maxwell-Garnett fitting of optical responses