Smectic-A liquid crystals: a Q-tensor theory, its analysis and numerics