Laws of formation of polar smectic phases under a frustrated interaction