Linearization of the electrostatic charging and charge decay curves of powders