Structure of an endosomal signaling GPCR–G protein–β-arrestin megacomplex