An on-line UPS with improved input-output characteristics