A new capacity testing method for stationary batteries