Orbital magnetic moment of a quantum well and a quantum dot in crossed magnetic and electric fields