Collapse transition of self-avoiding trails on the square lattice