A molecular field theory of smectic A liquid crystals: a simpler alternative to the McMillan theory