Semiconductor nanocrystals in a magnetic field