Solution of the batch grinding equation