Mach's principle and the origin of inertia