Molecular structure and the occurrence of smectic A and smectic c phases