Laplacian spectral characterization of two families of trees