Coffee-ring effect leads to crystallization control in semiconductors