Numerical study of spin effects in single and double quantum dots