Formation and rotation of two-dimensional Coulomb crystals in magnetized complex plasma