Optimising Uninterruptible Power Supply Batteries