On the construction of primitive elements and primitive normal bases in a finite field