First measurement of electron neutrino appearance in NOvA