Photon bubbles and ion acceleration in a plasma dominated by the radiation pressure of an electromagnetic pulse