A statistical interpretation of spectral embedding: The generalised random dot product graph. (3rd June 2022)