A method of charge measurement for contact electrification