Development of a three-dimensional computational slag flow model for coal combustion and gasification