On the relationship between miscibility and structure for smectic A, B and C phases