Supply of batteries for uninterruptible power supplies