A tangent formula derived from Patterson-function arguments. VII. Solution of inorganic structures from powder data with accidental overlap