Taming martensitic transformation via concentration modulation at nanoscale