Cosmological parameter estimation from SN Ia data: a model-independent approach