Orbit Design for General Relativity Experiments: Heliocentric and Mercury-centric Cases