Structure determination by dipolar coupling measurements of dilute nuclear spins in a polycrystalline solid