On the construction of nearest defective matrices to a normal matrix