Unified Green's function retrieval by cross-correlation: Connection with energy principles