The collapse transition of self-avoiding walks on a square lattice: A computer simulation study