The Beckman-Quarles theorem for continuous mappings from R^n to C^n