Line interactive UPS