First measurement of neutrino oscillation parameters using neutrinos and antineutrinos by NOvA