Unification of gravitational and electrodynamic potential based on classical action-at-a-distance theory