How current loops and solenoids curve space-time