Grand unified parity solution to the strong CP problem