Measurement of neutrino oscillations using neutrino and antineutrino beams in the NOvA experiment