Multi-Timescale Volt/Var Optimization With Battery Energy Storage Using Convex Relaxations In Smart Distribution Grids