Mathematical model of non-contact measurements of charges while moving