Quality variations and the choice between foreign and indigenous goods or technology