Jaguar Land Rover swings to quarterly profit