Dynamic theory for smectic A liquid crystals