Computer simulation studies of phase transitions and low-dimensional magnets