In-situ study on the hydrothermal synthesis mechanisms for nanopowders