The Smith group and the critical group of the Grassmann graph of lines in finite projective space and of its complement