Ulam method and fractal Weyl law for Perron-Frobenius operators