Spectral properties and universal behaviour of advecting–diffusing scalar fields in finite-length channels