Theoretical study of competing photoionization and photodissociation processes in the NO molecule