Determination of Spatial Distribution of Charges in Thin Dielectrics