Complex tensors and simple layers: a theory for smectic fluids