Parametric resonance and cooling on an atom chip