On the analogy between smectic a liquid crystals and superconductors