Artificially regulated synthesis of nanocrystals in live cells