Application of the Potts model to simulation of Ostwald ripening