Spin manipulation and spin-lattice interaction in magnetic colloidal quantum dots