A 17-year-old Norwegian man has become the first person globally to earn a flight certificate using exclusively electric aircraft.