WSP becomes world’s second biggest environmental-consulting firm with purchase of earth-sciences specialist