Effect of magnetic field on quantum state energies of an electron confined in the core of a double walled carbon nanotube