Architectures and control for energy storage systems with wired and wireless power transfer