Method for measuring the charging power of energy storage batteries