Experimental determination of two-dimensional critical current density distribution in YBCO coated conductors