Theoretical investigations of the spin Hamiltonian parameters and local tetragonal distortions for Cu2+ in crystalline and amorphous TeO2 and GeO2