Grain boundaries and the law of corresponding cones in smectics