A search for magnetic fields on central stars in planetary nebulae