Deep discharge of batteries