Phase formation processes in solution at the atomic level: Metal chalcogenide semiconductors